package org.resotc.dao;

import java.util.HashMap;

import org.resotc.model.Queue;

public interface QueueDAO {
	/**
	 * Returns a queue selected by an identifier.
	 * 
	 * @param id
	 * @return
	 */
	public Queue getQueue(int id);

	/**
	 * Returns all queues as a HashMap.
	 * 
	 * @return
	 */
	public HashMap<Integer, Queue> getQueues();

	/**
	 * Creates a new queue.
	 * 
	 * @param queue
	 */
	public void createQueue(Queue queue);

	/**
	 * Updates an existing queue.
	 * 
	 * @param queue
	 */
	public void updateQueue(Queue queue);

	/**
	 * Deletes an existing queue.
	 * 
	 * @param id
	 */
	public void deleteQueue(int id);

	/**
	 * Returns true or false whether a queue exists or not.
	 * 
	 * @param id
	 */
	public void queueExists(int id);
}
